import axios from 'axios'
const http = axios.create({
        baseURL: "",
        timeout: 6000
    })
    // 请求拦截
http.interceptors.request.use(config => {
        return config
    }, err => {
        console.log(err);
    })
    // 响应拦截
http.interceptors.response.use(res => {
        return res
    }, err => {
        console.log(err);
    })
    // 返出
export default http